from enum import Enum


class DealType(Enum):
    '''交易类型的枚举类'''
    all = 0  # 全部类型
    recharge = 1  # 充值
    Extract = 2  # 提现
    invest = 3  # 投资
    income = 4  # 收益
    recycle = 5  # 回收本金


class LoanConfig(Enum):
    """借款的年利率"""
    YEAR_RATE = 0.11  # 年利率
